﻿<%@ Page Language="C#" AutoEventWireup="true"  EnableViewState="false" EnableEventValidation="false" CodeBehind="PickingRptList.aspx.cs" Inherits="WMS6.Web.Analytics.PickingRptList" meta:resourcekey="Page" %>
<%@ PreviousPageType VirtualPath="~/Analytics/PickingRptQuery.aspx" %>
<%@ Register src="../UserControls/Pager.ascx" tagname="Pager" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>PickingRptList</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script> 
    <script src="../Js/util.js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>    
    <script src="../Js/checkbox.js" type="text/javascript"></script>    
    <script type="text/javascript">
    
      window.onload = function(){
            initListPage();
        }
        
        function returnSearch()
        {
            var from = document.getElementById("hdnFrom").value;
            if(from != "")
            {
                window.location.href = "PickingRptQuery.aspx";
            }
            else
            {
                window.history.go(-1);
            }
        }
    </script>
</head>
<body>
    <form id="F15431" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_List_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblReceiptInquiryList" runat="server" CssClass="label_header" Text="拣货报告"
                            meta:resourcekey="lblUom"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnRefresh" runat="server" CssClass="button" Enabled="False" Text="<%$Resources:ButtonResource,btnRefresh%>"
                            OnClick="btnRefresh_Click" />
                    </td>
                </tr>
            </table>
        </div>
        <div class="blank8">
        </div>
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>
                <div id="div_List">
                    <div id="div_List_msg">
                        <asp:Label ID="lblMsg" runat="server" CssClass="label_message"></asp:Label>
                    </div>
                    <asp:GridView ID="gvPickingRpt" runat="server" AutoGenerateColumns="False" AllowSorting="True"
                        CssClass="gridview" PageSize="20" Width="4600px" OnRowDataBound="gvPickingRpt_RowDataBound"
                        OnInit="gvPickingRpt_Init" OnSorting="gvPickingRpt_Sorting" meta:resourcekey="gvPickingRpt">
                        <FooterStyle CssClass="GridViewFooterStyle" />
                        <RowStyle CssClass="GridViewRowStyle" />
                        <HeaderStyle CssClass="GridViewHeaderStyle" />
                        <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                        <Columns>
                            <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="BoundField">
                                <ItemStyle CssClass="GridViewRowWidth_40" />
                            </asp:BoundField>
                            <asp:TemplateField meta:resourcekey="TemplateField">
                                <HeaderTemplate>
                                    <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('15431','gvPickingRpt');"
                                        onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                    <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvPickingRpt');"
                                        meta:resourcekey="CheckBox1" />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelect" />
                                </ItemTemplate>
                                <FooterTemplate>
                                    <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvPickingRpt');"
                                        meta:resourcekey="CheckBox2" />
                                </FooterTemplate>
                                <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="STATUS" HeaderText="拣货状态" FooterText="拣货状态" SortExpression="STATUS"
                                meta:resourcekey="STATUS">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="OWNER_ID" HeaderText="货主代码" FooterText="货主代码" SortExpression="OWNER_ID"
                                meta:resourcekey="OWNER_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="ORDER_ID" HeaderText="发货订单号" FooterText="发货订单号" SortExpression="ORDER_ID"
                                meta:resourcekey="ORDER_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="REFERENCE_NUM" HeaderText="销售订单号" FooterText="销售订单号" SortExpression="REFERENCE_NUM"
                                meta:resourcekey="REFERENCE_NUM">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="EXTERN_ORDER_ID" HeaderText="外部订单号" FooterText="外部订单号"
                                SortExpression="EXTERN_ORDER_ID" meta:resourcekey="EXTERN_ORDER_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="ORDER_TYPE" HeaderText="类型" FooterText="类型" SortExpression="ORDER_TYPE"
                                meta:resourcekey="ORDER_TYPE">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CUSTOMER_ID" HeaderText="客户代码" FooterText="客户代码" SortExpression="CUSTOMER_ID"
                                meta:resourcekey="CUSTOMER_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CUSTOMER_ID" HeaderText="客户名称" FooterText="客户名称" SortExpression="CUSTOMER_ID"
                                meta:resourcekey="CUSTOMER_ID">
                                <ItemStyle CssClass="GridViewRowWidth_200" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CUST_ADDRESS" HeaderText="发货地址" FooterText="发货地址" SortExpression="CUST_ADDRESS"
                                meta:resourcekey="CUST_ADDRESS">
                                <ItemStyle CssClass="GridViewRowWidth_200" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CREATED_BY" HeaderText="制单人" FooterText="制单人" SortExpression="CREATED_BY"
                                meta:resourcekey="CREATED_BY">
                                <ItemStyle CssClass="GridViewRowWidth_200" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CREATED_DATE" HeaderText="制单日期" FooterText="制单日期" SortExpression="CREATED_DATE"
                                meta:resourcekey="CREATED_DATE">
                                <ItemStyle CssClass="GridViewRowWidth_200" />
                            </asp:BoundField>
                            <asp:TemplateField FooterText="要求发货日期" HeaderText="要求发货日期" SortExpression="REQUESTED_SHIP_DATE"
                                meta:resourcekey="REQUESTED_SHIP_DATE">
                                <ItemTemplate>
                                    <asp:Label ID="lblRequestedShipDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("REQUESTED_SHIP_DATE").ToString()) %>'
                                        meta:resourcekey="lblRequestedShipDate"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_150" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="实际发货日期" HeaderText="实际发货日期" SortExpression="ACTUAL_SHIP_DATE"
                                meta:resourcekey="ACTUAL_SHIP_DATE">
                                <ItemTemplate>
                                    <asp:Label ID="lblActualShipDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("ACTUAL_SHIP_DATE").ToString()) %>'
                                        meta:resourcekey="lblActualShipDate"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_150" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="ORDER_LINE_ID" HeaderText="行号" FooterText="行号" SortExpression="ORDER_LINE_ID"
                                meta:resourcekey="ORDER_LINE_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="SKU_ID" HeaderText="货品代码" FooterText="货品代码" SortExpression="SKU_ID"
                                meta:resourcekey="SKU_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:TemplateField FooterText="货品描述" HeaderText="货品描述" SortExpression="SKU_DESCR"
                                meta:resourcekey="SKU_DESCR">
                                <ItemTemplate>
                                    <asp:Label ID="lblSkuDescr" runat="server" Text='<%# Eval("SKU_DESCR").ToString() %>'
                                        meta:resourcekey="lblSkuDescr"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_200" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="SKU_CLASS_ID" HeaderText="货品分类" FooterText="货品分类" SortExpression="SKU_CLASS_ID"
                                meta:resourcekey="SKU_CLASS_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="ZONE_ID" HeaderText="储区" FooterText="储区" SortExpression="ZONE_ID"
                                meta:resourcekey="ZONE_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LOC" HeaderText="货位" FooterText="货位" SortExpression="LOC"
                                meta:resourcekey="LOC">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LPN_ID" HeaderText="LPN" FooterText="LPN" SortExpression="LPN_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>                           
                            <asp:TemplateField FooterText="拣货数量" HeaderText="拣货数量" SortExpression="QTY" meta:resourcekey="QTY">
                                <ItemTemplate>
                                    <asp:Label ID="lblQty" runat="server" Text='<%# GetPreferenceDigit(Eval("QTY").ToString()) %>'
                                        meta:resourcekey="lblQty"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="SKU_PROPERTY" HeaderText="货品属性" FooterText="货品属性" SortExpression="SKU_PROPERTY"
                                meta:resourcekey="SKU_PROPERTY">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:TemplateField FooterText="拣货任务发放时间" HeaderText="拣货任务发放时间" SortExpression="RELEASE_DATE"
                                meta:resourcekey="RELEASE_DATE">
                                <ItemTemplate>
                                    <asp:Label ID="lblReleaseDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("RELEASE_DATE").ToString()) %>'
                                        meta:resourcekey="lblReleaseDate"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_150" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="实际拣货完成时间" HeaderText="实际拣货完成时间" SortExpression="PICK_DETAIL_CONFIRM_DATE"
                                meta:resourcekey="PICK_DETAIL_CONFIRM_DATE">
                                <ItemTemplate>
                                    <asp:Label ID="lblPickDetailConfirmDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("PICK_DETAIL_CONFIRM_DATE").ToString()) %>'
                                        meta:resourcekey="lblPickDetailConfirmDate"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_150" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="VENDOR_ID" HeaderText="供应商代码" FooterText="供应商代码" SortExpression="VENDOR_ID"
                                meta:resourcekey="VENDOR_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="VENDOR_COMPANY" HeaderText="供应商名称" FooterText="供应商名称"
                                SortExpression="VENDOR_COMPANY" meta:resourcekey="VENDOR_COMPANY">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="EXTERNAL_LOT" HeaderText="外部批号" FooterText="外部批号" SortExpression="EXTERNAL_LOT"
                                meta:resourcekey="EXTERNAL_LOT">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:TemplateField FooterText="生产日期" HeaderText="生产日期" SortExpression="PRODUCE_DATE"
                                meta:resourcekey="PRODUCE_DATE">
                                <ItemTemplate>
                                    <asp:Label ID="lblProduceDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("PRODUCE_DATE").ToString()) %>'
                                        meta:resourcekey="lblProduceDate"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_150" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="失效日期" HeaderText="失效日期" SortExpression="EXPIRY_DATE"
                                meta:resourcekey="EXPIRY_DATE">
                                <ItemTemplate>
                                    <asp:Label ID="lblExpiryDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("EXPIRY_DATE").ToString()) %>'
                                        meta:resourcekey="lblExpiryDate"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_150" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="LOT_ATTR01" HeaderText="批属性01" FooterText="批属性01" SortExpression="LOT_ATTR01"
                                meta:resourcekey="LOT_ATTR01">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LOT_ATTR02" HeaderText="批属性02" FooterText="批属性02" SortExpression="LOT_ATTR02"
                                meta:resourcekey="LOT_ATTR02">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LOT_ATTR03" HeaderText="批属性03" FooterText="批属性03" SortExpression="LOT_ATTR03"
                                meta:resourcekey="LOT_ATTR03">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LOT_ATTR04" HeaderText="批属性04" FooterText="批属性04" SortExpression="LOT_ATTR04"
                                meta:resourcekey="LOT_ATTR04">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LOT_ATTR05" HeaderText="批属性05" FooterText="批属性05" SortExpression="LOT_ATTR05"
                                meta:resourcekey="LOT_ATTR05">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LOT_ATTR06" HeaderText="批属性06" FooterText="批属性06" SortExpression="LOT_ATTR06"
                                meta:resourcekey="LOT_ATTR06">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LOT_ATTR07" HeaderText="批属性07" FooterText="批属性07" SortExpression="LOT_ATTR07"
                                meta:resourcekey="LOT_ATTR07">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LOT_ATTR08" HeaderText="批属性08" FooterText="批属性08" SortExpression="LOT_ATTR08"
                                meta:resourcekey="LOT_ATTR08">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LOT_ATTR09" HeaderText="批属性09" FooterText="批属性09" SortExpression="LOT_ATTR09"
                                meta:resourcekey="LOT_ATTR09">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="LOT_ATTR10" HeaderText="批属性10" FooterText="批属性10" SortExpression="LOT_ATTR10"
                                meta:resourcekey="LOT_ATTR10">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:TemplateField FooterText="入库日期" HeaderText="入库日期" SortExpression="RECEIPT_DATE"
                                meta:resourcekey="RECEIPT_DATE">
                                <ItemTemplate>
                                    <asp:Label ID="lblActualReceiptDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("RECEIPT_DATE").ToString()) %>'
                                        meta:resourcekey="lblActualReceiptDate"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_150" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="总重量" HeaderText="总重量" SortExpression="TOTAL_GROSS_WGT"
                                meta:resourcekey="TOTAL_GROSS_WGT">
                                <ItemTemplate>
                                    <asp:Label ID="lblTotalGrossWgt" runat="server" Text='<%# GetPreferenceDigit(Eval("TOTAL_GROSS_WGT").ToString()) %>'
                                        meta:resourcekey="lbltotalGrossWgt"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="总毛量" HeaderText="总毛量" SortExpression="TOTAL_NET_WGT"
                                meta:resourcekey="TOTAL_NET_WGT">
                                <ItemTemplate>
                                    <asp:Label ID="lblTotalNetWgt" runat="server" Text='<%# GetPreferenceDigit(Eval("TOTAL_NET_WGT").ToString()) %>'
                                        meta:resourcekey="lbltotalNetWgt"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="总体积" HeaderText="总体积" SortExpression="TOTAL_CUBE"
                                meta:resourcekey="TOTAL_CUBE">
                                <ItemTemplate>
                                    <asp:Label ID="lblTotalCube" runat="server" Text='<%# GetPreferenceDigit(Eval("TOTAL_CUBE").ToString()) %>'
                                        meta:resourcekey="lblTotalCube"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="备注" HeaderText="备注" SortExpression="REMARK" meta:resourcekey="REMARK">
                                <ItemTemplate>
                                    <asp:Label ID="lblRemark" runat="server" Text='<%# Eval("REMARK").ToString() %>'
                                        meta:resourcekey="lblRemark"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_200" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="预期量" HeaderText="预期量" SortExpression="ORIGINAL_QTY"
                                meta:resourcekey="ORIGINAL_QTY">
                                <ItemTemplate>
                                    <asp:Label ID="lblOriginalQty" runat="server" Text='<%# GetPreferenceDigit(Eval("ORIGINAL_QTY").ToString()) %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                    <asp:GridView ID="gvPickingByOrderRpt" runat="server" AutoGenerateColumns="False"
                        AllowSorting="True" Visible="false" CssClass="gridview" PageSize="20" Width="3500px"
                        OnRowDataBound="gvPickingByOrderRpt_RowDataBound" OnInit="gvPickingByOrderRpt_Init"
                        OnSorting="gvPickingByOrderRpt_Sorting" meta:resourcekey="gvPickingRpt">
                        <FooterStyle CssClass="GridViewFooterStyle" />
                        <RowStyle CssClass="GridViewRowStyle" />
                        <HeaderStyle CssClass="GridViewHeaderStyle" />
                        <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                        <Columns>
                            <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="BoundField">
                                <ItemStyle CssClass="GridViewRowWidth_40" />
                            </asp:BoundField>
                            <asp:TemplateField meta:resourcekey="TemplateField">
                                <HeaderTemplate>
                                    <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('15431','gvPickingByOrderRpt');"
                                        onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                    <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvPickingByOrderRpt');"
                                        meta:resourcekey="CheckBox1" />
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelect" />
                                </ItemTemplate>
                                <FooterTemplate>
                                    <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvPickingByOrderRpt');"
                                        meta:resourcekey="CheckBox2" />
                                </FooterTemplate>
                                <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="ORDER_TYPE" HeaderText="类型" FooterText="类型" SortExpression="ORDER_TYPE"
                                meta:resourcekey="ORDER_TYPE">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="STATUS" HeaderText="拣货状态" FooterText="拣货状态" SortExpression="STATUS"
                                meta:resourcekey="STATUS">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="ORDER_ID" HeaderText="发货订单号" FooterText="发货订单号" SortExpression="ORDER_ID"
                                meta:resourcekey="ORDER_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="EXTERN_ORDER_ID" HeaderText="外部订单号" FooterText="外部订单号"
                                SortExpression="EXTERN_ORDER_ID" meta:resourcekey="EXTERN_ORDER_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="REFERENCE_NUM" HeaderText="销售订单号" FooterText="销售订单号" SortExpression="REFERENCE_NUM"
                                meta:resourcekey="REFERENCE_NUM">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="OWNER_ID" HeaderText="货主代码" FooterText="货主代码" SortExpression="OWNER_ID"
                                meta:resourcekey="OWNER_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CUSTOMER_ID" HeaderText="客户代码" FooterText="客户代码" SortExpression="CUSTOMER_ID"
                                meta:resourcekey="CUSTOMER_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CUST_ADDRESS" HeaderText="发货地址" FooterText="发货地址" SortExpression="CUST_ADDRESS"
                                meta:resourcekey="CUST_ADDRESS">
                                <ItemStyle CssClass="GridViewRowWidth_200" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CREATED_BY" HeaderText="制单人" FooterText="制单人" SortExpression="CREATED_BY"
                                meta:resourcekey="CREATED_BY">
                                <ItemStyle CssClass="GridViewRowWidth_200" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CREATED_DATE" HeaderText="制单日期" FooterText="制单日期" SortExpression="CREATED_DATE"
                                meta:resourcekey="CREATED_DATE">
                                <ItemStyle CssClass="GridViewRowWidth_200" />
                            </asp:BoundField>
                            <asp:TemplateField FooterText="要求发货日期" HeaderText="要求发货日期" SortExpression="REQUESTED_SHIP_DATE"
                                meta:resourcekey="REQUESTED_SHIP_DATE">
                                <ItemTemplate>
                                    <asp:Label ID="lblRequestedShipDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("REQUESTED_SHIP_DATE").ToString()) %>'
                                        meta:resourcekey="lblRequestedShipDate"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_150" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="实际发货日期" HeaderText="实际发货日期" SortExpression="ACTUAL_SHIP_DATE"
                                meta:resourcekey="ACTUAL_SHIP_DATE">
                                <ItemTemplate>
                                    <asp:Label ID="lblActualShipDate" runat="server" Text='<%# GetPreferenceShortDate(Eval("ACTUAL_SHIP_DATE").ToString()) %>'
                                        meta:resourcekey="lblActualShipDate"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_150" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="订单日期" HeaderText="订单日期" SortExpression="ORDER_DATE"
                                meta:resourcekey="ORDER_DATE">
                                <ItemTemplate>
                                    <asp:Label ID="lblOrderDeta" runat="server" Text='<%# GetPreferenceShortDate(Eval("ORDER_DATE").ToString()) %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_150" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="ORDER_LINE_ID" HeaderText="行号" FooterText="行号" SortExpression="ORDER_LINE_ID"
                                meta:resourcekey="ORDER_LINE_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="SKU_ID" HeaderText="货品代码" FooterText="货品代码" SortExpression="SKU_ID"
                                meta:resourcekey="SKU_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:TemplateField FooterText="货品描述" HeaderText="货品描述" SortExpression="SKU_DESCR"
                                meta:resourcekey="SKU_DESCR">
                                <ItemTemplate>
                                    <asp:Label ID="lblSkuDescr" runat="server" Text='<%# Eval("SKU_DESCR").ToString() %>'
                                        meta:resourcekey="lblSkuDescr"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_200" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="SKU_CLASS_ID" HeaderText="货品分类" FooterText="货品分类" SortExpression="SKU_CLASS_ID"
                                meta:resourcekey="SKU_CLASS_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:TemplateField FooterText="预期量" HeaderText="预期量" SortExpression="ORIGINAL_QTY"
                                meta:resourcekey="ORIGINAL_QTY">
                                <ItemTemplate>
                                    <asp:Label ID="lblOriginalQty" runat="server" Text='<%# GetPreferenceDigit(Eval("ORIGINAL_QTY").ToString()) %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="拣货数量" HeaderText="拣货数量" SortExpression="QTY" meta:resourcekey="QTY">
                                <ItemTemplate>
                                    <asp:Label ID="lblQty" runat="server" Text='<%# GetPreferenceDigit(Eval("QTY").ToString()) %>'
                                        meta:resourcekey="lblQty"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="差异量" HeaderText="差异量" SortExpression="DIFF_QTY" meta:resourcekey="DIFF_QTY">
                                <ItemTemplate>
                                    <asp:Label ID="lblDiffQty" runat="server" Text='<%# GetPreferenceDigit(Eval("DIFF_QTY").ToString()) %>'
                                        meta:resourcekey="lblDiffQty"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="PACK_ID" HeaderText="包装代码" FooterText="包装代码" SortExpression="PACK_ID"
                                meta:resourcekey="PACK_ID">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="UOM_DESCR" HeaderText="单位" FooterText="单位" SortExpression="UOM_DESCR"
                                meta:resourcekey="UOM_DESCR">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:BoundField DataField="BARCODE" HeaderText="条码" FooterText="条码" SortExpression="BARCODE">
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:BoundField>
                            <asp:TemplateField FooterText="总重量" HeaderText="总重量" SortExpression="TOTAL_GROSS_WGT"
                                meta:resourcekey="TOTAL_GROSS_WGT">
                                <ItemTemplate>
                                    <asp:Label ID="lblTotalGrossWgt" runat="server" Text='<%# GetPreferenceDigit(Eval("TOTAL_GROSS_WGT").ToString()) %>'
                                        meta:resourcekey="lbltotalGrossWgt"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="总毛量" HeaderText="总毛量" SortExpression="TOTAL_NET_WGT"
                                meta:resourcekey="TOTAL_NET_WGT">
                                <ItemTemplate>
                                    <asp:Label ID="lblTotalNetWgt" runat="server" Text='<%# GetPreferenceDigit(Eval("TOTAL_NET_WGT").ToString()) %>'
                                        meta:resourcekey="lbltotalNetWgt"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                            <asp:TemplateField FooterText="总体积" HeaderText="总体积" SortExpression="TOTAL_CUBE"
                                meta:resourcekey="TOTAL_CUBE">
                                <ItemTemplate>
                                    <asp:Label ID="lblTotalCube" runat="server" Text='<%# GetPreferenceDigit(Eval("TOTAL_CUBE").ToString()) %>'
                                        meta:resourcekey="lblTotalCube"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle CssClass="GridViewRowWidth_100" />
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                    <div>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr style="height: 10px">
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td class="Result_01">
                                    总计：
                                </td>
                                <td class="Result_02">
                                    <table>
                                        <tr>
                                            <td style="margin-right: 20px;">
                                                &nbsp; &nbsp;
                                            </td>
                                            <td>
                                                <asp:Label ID="lblTotalQty" runat="server" Text="拣货数量:" class="label"></asp:Label>
                                                <asp:Label ID="lblTotalQtyText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblTotalGrossWgt" runat="server" Text="总重量:" class="label"></asp:Label>
                                                <asp:Label ID="lblTotalGrossWgtText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblTotalNetWgt" runat="server" Text="总毛重:" class="label"></asp:Label>
                                                <asp:Label ID="lblTotalNetWgtText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblTotalCube" runat="server" Text="总体积:" class="label"></asp:Label><asp:Label
                                                    ID="lblTotalCubeText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td class="Result_03">
                                </td>
                            </tr>
                            <tr style="height: 20px">
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div id="div_pager">
                    <uc1:Pager ID="PagerFooter" runat="server" OnFirst="btnFirst_Click" OnPrevious="btnPrevious_Click"
                        OnNext="btnNext_Click" OnLast="btnLast_Click" OnGoTo="GoTo_Click" />
                </div>
                <input type="hidden" runat="server" id="hdnFrom" />
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="btnList" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="btnRefresh" EventName="Click" />
            </Triggers>
        </asp:UpdatePanel>
        <input type="hidden" id="hdnActionID" runat="server" />
        <div id="div_List_bottom">
            <table>
                <tr>
                    <td>
                        <asp:Button ID="btnSearch" runat="server" Text="<%$Resources:ButtonResource,btnNewSearch%>"
                            CssClass="button" Enabled="False" OnClientClick="javascript:window.location.href='PickingRptQuery.aspx';return false;" />
                    </td>
                    <td>
                        <asp:Button ID="btnReSearch" runat="server" Text="<%$Resources:ButtonResource,btnReSearch%>"
                            CssClass="button" Enabled="False" OnClientClick="javascript:returnSearch();return false;" />
                    </td>
                    <td>
                        <asp:Button ID="btnList" runat="server" Text="<%$Resources:ButtonResource,btnList%>"
                            CssClass="button" Enabled="False" OnClick="btnList_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnExport" runat="server" Text="<%$Resources:ButtonResource,btnExport%>"
                            CssClass="button" Enabled="False" OnClick="btnExport_Click" />
                    </td>
                </tr>
            </table>
        </div>
    </div>
    </form>
</body>
</html>
